# Copyright (c) 2018 Presto Labs Pte. Ltd.
# Author: inkyu

from slackclient import SlackClient


class LogParser(object):
  def __init__(self):
    self._token = 'xoxb-95415286342-Ri43thLnJimEWuQnIK0oBOkR'
    self._sc = SlackClient(self._token)

  def send(self, message):
    res = self._sc.api_call('chat.postMessage',
                            channel='#arb-positions',
                            text=message,
                            icon_emoji=':suzy:',
                            username='suzy')
    print(res)
